/*
 * Filename    : Text_Manager.java
 * Projectname : Sound Of Indonesia
 * Date        : Nov 2, 2012 , 12:51:17 AM 
 * 
 * PratamaNurWijaya
 */

package id.pratama.soundofindonesia.text;

import id.pratama.soundofindonesia.Utils;
import id.pratama.soundofindonesia.graphic.Graphic_Detach;

import org.andengine.engine.camera.hud.HUD;
import org.andengine.entity.scene.Scene;
import org.andengine.entity.text.Text;

import android.content.Context;

public class Text_Manager extends Text_Load implements Text_Data
{

	public Text[]	txt_Menu_Main	= new Text[TEXT_MENU_MAIN.length];

	public Text_Manager(Context con, Scene scene, HUD hud, Graphic_Detach graf)
	{
		super(con, scene, hud, graf);

	}

	public void attachTeksMenuMain()
	{
		for (int i = 0; i < TEXT_MENU_MAIN.length; i++)
		{
			if (txt_Menu_Main[i] == null)
				txt_Menu_Main[i] = new Text(0, 0, fnt_Big, TEXT_MENU_MAIN[i], getVertex());
			grafik.spr_Menu_Bg.attachChild(txt_Menu_Main[i]);
			m_Scene.registerTouchArea(txt_Menu_Main[i]);
		}

		txt_Menu_Main[0].setPosition(Utils.getRatio(500), Utils.getRatio(100));
		txt_Menu_Main[1].setPosition(Utils.getRatio(500), Utils.getRatio(200));
		txt_Menu_Main[2].setPosition(Utils.getRatio(500), Utils.getRatio(300));

	}

}
